/*
** 202loi.h for  in /home/jousse_f//workspace/Math/202loi
** 
** Made by florian jousseau
** Login   <jousse_f@epitech.net>
** 
** Started on  Fri Mar  9 11:35:08 2012 florian jousseau
** Last update Fri Mar  9 18:00:29 2012 florian jousseau
*/

#ifndef LOI_H_
# define LOI_H_

# include <SFML/Graphics.hpp>

using namespace sf;

#include	"Table.hh"

typedef struct		s_tab
{
  Table			*tab1;
  Table			*tab2;
  Table			*tab3;
  Table			*tab4;
  Table			*tab5;
}			t_tab;

typedef struct		s_loi
{
  int			option;
  Font			font;
  String		text;
  t_tab			*tab;
}		t_loi;

int	start_graph(t_tab *tab, int op);

double		loi_conjointe(int x, int y);
double		loi_marginale_y(std::string **tab, int y);
double		loi_marginale_x(std::string **tab, int x);
double		esperance_x(std::string **tab);
double		esperance_y(std::string **tab);
double		variance_x(std::string **tab);
double		variance_y(std::string **tab);

void		option_1(t_tab *tab);
void		option_2(t_tab *tab);
void		option_3(t_tab *tab);
void		option_4(t_tab *tab);
void		option_5(t_tab *tab);

#endif /* !202LOI_H_ */
